import '@babel/polyfill'
// import 'mutationobserver-shim'
import axios from 'axios'
import Vue from 'vue'
import App from './App.vue'
import './assets/global.css'
import './plugins/element.js'
import router from './router'

// 请求根路径
axios.defaults.baseURL = 'https://virtserver.swaggerhub.com/young-zy/Forum/0.0.1'
Vue.config.productionTip = false

// 每一个vue的组件都可以通过this直接访问到http,从而发起ajax请求
Vue.prototype.$http = axios
new Vue({
  router,
  render: h => {
    return h(App)
  }
}).$mount('#app')
